package jmind.asteroidea.annotations;

import jmind.asteroidea.plugin.spring.AsteroideaBeanDefinitionRegister;
import jmind.asteroidea.plugin.spring.StartfishInterceptor;
import jmind.asteroidea.proxy.AsteroideaProxyEnum;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * description:
 *
 * @author weibo.xie
 * @date:2022/7/7 上午11:21
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({AsteroideaBeanDefinitionRegister.class, StartfishInterceptor.class})
public @interface EnableAsteroidea {

    // 扫描包，默认main方法的所在包
    String[] basePackages() default {};
    /***代理实现（cglib，jdk） 默认jdk*/
    AsteroideaProxyEnum proxy() default AsteroideaProxyEnum.JDK;
}
